package com.dengyuanke.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dengyuanke.common.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author dengyuanke
 * @since 2017-11-07
 */
@ApiModel("订单实体")
@TableName("tb_orders")
public class Orders extends SuperEntity<Orders> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @ApiModelProperty("商品id")
	@TableField("good_id")
	private String goodId;
    /**
     * 商品名
     */
	@ApiModelProperty("商品名")
	@TableField("good_name")
	private String goodName;
    /**
     * 下单时间
     */
	@ApiModelProperty("下单时间")
	@TableField("create_time")
	private Date createTime;
    /**
     * 是否支付 0否1是
     */
	@ApiModelProperty("是否支付 0否1是")
	@TableField("is_paid")
	private Boolean paid;
    /**
     * 支付时间
     */
	@ApiModelProperty("支付时间")
	@TableField("update_time")
	private Date updateTime;
    /**
     * 创建人
     */
	@ApiModelProperty("创建人")
	@TableField("creator_id")
	private String creatorId;

	public String getGoodId() {
		return goodId;
	}

	public void setGoodId(String goodId) {
		this.goodId = goodId;
	}

	public String getGoodName() {
		return goodName;
	}

	public void setGoodName(String goodName) {
		this.goodName = goodName;
	}

	@Override
	public Date getCreateTime() {
		return createTime;
	}

	@Override
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Boolean getPaid() {
		return paid;
	}

	public void setPaid(Boolean paid) {
		this.paid = paid;
	}

	@Override
	public Date getUpdateTime() {
		return updateTime;
	}

	@Override
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}

	@Override
	public String toString() {
		return "Orders{" +
				"goodId='" + goodId + '\'' +
				", goodName='" + goodName + '\'' +
				", createTime=" + createTime +
				", paid=" + paid +
				", updateTime=" + updateTime +
				", creatorId='" + creatorId + '\'' +
				'}';
	}
}
